package com.guigu.liuzhireng.controller;

import com.guigu.liuzhireng.pojo.PageVo;
import com.guigu.liuzhireng.pojo.Syslogs;
import com.guigu.liuzhireng.service.SyslogsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
@RequestMapping("Syslogs.do")
public class SyslogsController {
    @Autowired
    SyslogsService service;
    @RequestMapping("queryAllSyslogs")
    @ResponseBody
    public PageVo<Syslogs> Page(@RequestBody PageVo<Syslogs> pageVo){
        return service.Page(pageVo.getObj(),pageVo.getNum(),pageVo.getSize());
    }

}
